Enforce warnings as errors for reflection-free acceptance builds - #10449
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 17e64d8a-9615-4707-bfe2-bc1e4d614589
There was a problem hiding this comment.
🟢 Ready to approve
The focused changes correctly preserve existing behavior while making reflection-free warning enforcement explicit.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Enforces warning-free reflection-free acceptance builds through mode-specific MSBuild arguments.
Changes:
- Adds compiler and MSBuild warning promotion for
AotSourceGeneration. - Disables the shared warning default to verify the mode-owned contract.
File summaries
| File | Description |
|---|---|
AcceptanceSourceGen.cs |
Adds reflection-free warning promotion arguments. |
TestAssetFixtureBase.cs |
Exercises mode-specific warning settings during asset builds. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
🧵 Parallel-safety audit — PR #10449Nothing audited here touches process-global state, shared filesystem paths, or The two changed files ( No test assembly's parallelization state changed in this PR, so no scope table applies. Re-run with
|
Summary
ReflectionFreeacceptance buildsValidation
Microsoft.Testing.TestInfrastructure.csprojwith 0 warnings and 0 errorsbuild.cmd -c Release -packwith 0 warnings and 0 errorsMSTest.Acceptance.IntegrationTests.InconclusiveTests: 24 passed, including all 8AotSourceGenerationcases